import request from '@/utils/request'

// 钱包信息
export function wallet(data) {
  return request({
    url: '/business/fund/wallet',
    method: 'get',
    data: data
  })
}
// 充值配置
export function rechargeConfig(data) {
  return request({
    url: '/business/fund/recharge-config',
    method: 'get',
    data: data
  })
}
export function widthDrawConfig(data) {
  return request({
    url: '/business/fund/withdraw-config',
    method: 'get',
    data: data
  })
}

// 充值
export function recharge(data) {
  return request({
    url: '/business/fund/recharge',
    method: 'post',
    data: data
  })
}
export function withdraw(data) {
  return request({
    url: '/business/fund/withdraw',
    method: 'post',
    data: data
  })
}
export function rechargeLog(data) {
  return request({
    url: '/business/fund/recharge-log',
    method: 'get',
    data: data
  })
}
export function withdrawLog(data) {
  return request({
    url: '/business/fund/withdraw-log',
    method: 'get',
    data: data
  })
}
export function userbank(data) {
  return request({
    url: '/business/fund/user-bank',
    method: 'get',
    data: data
  })
}
export function submitBank(data) {
  return request({
    url: '/business/fund/submit-bank',
    method: 'post',
    data: data
  })
}
